package com.stylefeng.guns.common.persistence.dao;

import com.stylefeng.guns.common.persistence.model.ProductInfo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author zhouh
 * @since 2017-10-15
 */
public interface ProductInfoMapper extends BaseMapper<ProductInfo> {

    /**
     * 插入产品信息，返回插入主键
     * @param info
     * @return
     */
    public Integer insertProductInfo(ProductInfo info);


    /**
     * 更新产品库存量
     */

    public Integer updateProductInfoAmount(@Param("id") Integer id, @Param("amount") Integer amount);

}